import Rrequest from '@/util/Rrequest'

// 自营商城订单列表
export async function orderlist(data) {
	return Rrequest({
		url: '/boot/order/select/page',
		method: 'post',
		data: data
	})
}

// 用户授权
export async function getuser() {
	return Rrequest({
		url: '/boot/mass-oil/getUserLogin',
		method: 'get'
	})
}

// 团油订单列表
export async function platformOrderInfoV2(data) {
	return Rrequest({
		url: '/boot/mass-oil/platformOrderInfoV2',
		method: 'post',
		data: data
	})
}

//获取团油授权码
export async function getSecretCode() {
	return Rrequest({
		url: '/boot/mass-oil/getSecretCode',
		method: 'get'
	})
}

//获取团油油站详情
export async function getGasInfoList(data) {
	return Rrequest({
		url: '/boot/mass-oil/getGasInfoList/massoil',
		method: 'post',
		data: data
	})
}


//淘宝订单列表
export async function taobaoorderlist(data) {
	return Rrequest({
		url: '/taobao/order/list',
		method: 'post',
		data: data
	})
}

// 唯品会订单列表 
export async function getWeiPinHuiOrder(data) {
	return Rrequest({
		url: '/weipinhui/getWeiPinHuiOrder',
		method: 'post',
		data: data
	})
}

//京东订单列表 
export async function jingdongOrder(data) {
	return Rrequest({
		url: '/boot/jingdongOrder/getOrderList',
		method: 'post',
		data: data
	})
}

//美团订单列表 
export async function meituanOrder(data) {
	return Rrequest({
		url: '/meituan/selectMeituanlist',
		method: 'post',
		data: data
	})
}

//淘宝订单详情
export async function taobaodetail(data) {
	return Rrequest({
		url: '/taobao/order/detail/' + data,
		method: 'get'
	})
}

//京东订单详情
export async function getJDOrderById(data) {
	return Rrequest({
		url: '/boot/jingdongOrder/getJDOrderById/' + data,
		method: 'get'
	})
}

//唯品会订单详情
export async function getWeiPinHuiOrderById(data) {
	return Rrequest({
		url: '/weipinhui/getWeiPinHuiOrderById/' + data,
		method: 'get'
	})
}

//美团订单详情
export async function getmeituanOrderById(params) {
	return Rrequest({
		url: '/meituan/detail',
		method: 'get',
		params:params
	})
}

//自营商城订单详情
export async function mineOrderById(data) {
	return Rrequest({
		url: '/boot/order/select/detail/' + data,
		method: 'post',
		// params:params
		// data:data
	})
}

export async function commissionsrecordselectlist(data) {
	return Rrequest({
		url: '/commissions/record/select/list',
		method: 'post',
		data
	})
}

export async function bootordercancel(data) {
	return Rrequest({
		url: '/boot/order/cancel/' + data,
		method: 'delete'
	})
}

//pdd订单列表
export async function pddorderlist(data) {
	return Rrequest({
		url: '/pdd/order/list',
		method: 'post',
		data:data
	})
}

//pdd订单详情
export async function pddorderdetail(data) {
	return Rrequest({
		url: '/pdd/order/detail/' + data,
		method: 'get'
	})
}